package com.qfedu.page;

import com.qfedu.constants.PageEnum;

import java.util.List;

public class PageBean<T> {
    private int pageNo; //当前页  currentPage
    //    private int pageSize=Constants.PAGESIZE;//每页显示的大小
    private int pageSize=PageEnum.DEFAULTSIZE.getSize();//每页显示的大小
    private int pageTotal;//总页数   总记录数运算所得
    private int pageTotalCount;// 总记录数
    //    private String url="/clientBookServlet?action=page"; ///clientBookServlet?action=page  应该是一个动态
    private String url; ///clientBookServlet?action=page  应该是一个动态
    private List<T> items;

    public List<T> getItems() {
        return items;
    }

    public void setItems(List<T> items) {
        this.items = items;
    }

    public PageBean() {
    }

    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageTotal() {
        return pageTotal;
    }

    public void setPageTotal(int pageTotal) {
        this.pageTotal = pageTotal;
    }

    public int getPageTotalCount() {
        return pageTotalCount;
    }

    public void setPageTotalCount(int pageTotalCount) {
        this.pageTotalCount = pageTotalCount;
    }


    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

}
